package javacommon.base;

import cn.org.rapid_framework.page.PageRequest;

public class BaseQuery extends PageRequest implements java.io.Serializable
{
	private static final long serialVersionUID = -360860474471966681L;
	
	private int start;
	
	private int limit;
	static
	{
		//System.out.println("BaseQuery.DEFAULT_PAGE_SIZE=" + DEFAULT_PAGE_SIZE);
	}

	public BaseQuery()
	{
		setPageSize(25);
	} 

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		if ( limit == 0){
			return 25;
		}
		return limit;
	}

	public void setLimit(int limit) {
	
		this.limit = limit;
	}
}
